package com.wfs.spring.thread.two.t218;

/**
 * @Auther: wfs
 * @Date: 2019/6/11 20:12
 * @Description:
 */
public class MyThreadA extends  Thread {
    Sub sub;
    public MyThreadA(Sub sub){
        super();
        this.sub=sub;
    }

    @Override
    public void run() {
        sub.serviceMethod();
    }
}
